package com.k.comnote.activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;
import android.widget.Toast;

import com.k.comnote.R;
import com.k.comnote.database.NoteDB;
import com.k.comnote.model.Note;

/**
 * Created by K on 2015/9/13.
 */
public class NoteShow extends Activity {


    private TextView showTitleView;
    private TextView showTimeView;
    private TextView showContentView;

    private NoteDB db;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_shownote);
        initView();

        Bundle note = getIntent().getExtras();
        showTitleView.setText(note.getString("title"));
        showTimeView.setText(note.getString("time"));
        showContentView.setText(note.getString("content"));

    }


    private void initView() {
        showTitleView = (TextView) findViewById(R.id.showview_title);
        showTimeView = (TextView) findViewById(R.id.showview_time);
        showContentView = (TextView) findViewById(R.id.showview_content);

        db = NoteDB.getNoteDB(this);
    }


}
